"use strict";
App({
    globalData: {
        // user: wx.getStorageSync('user'),
        // canGetUser: wx.getStorageSync('canGetUser') ? true : false,
        location: {},
    },
    onLaunch: async function () {
        const that = this;
        wx.login({
            success: function (res) {
                wx.getLocation({
                    type: 'wgs84',
                    success(location) {
                        that.globalData.location = location;
                    },
                    fail(error){
                        console.log(error)
                    }
                })
            },
        });
    }
});